﻿<UserControl x:Class="ControlerLib.ProtocolControler"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="297" d:DesignWidth="721">
    <Grid Margin="5">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="108*" />
            <ColumnDefinition Width="295*" />
            <ColumnDefinition Width="372*" />
        </Grid.ColumnDefinitions>
        <Button  Grid.Column="0" Content="Load Protocol" Height="23" HorizontalAlignment="Left" Margin="10,10,0,0" Name="buttonLoadProtocol" VerticalAlignment="Top" Width="86" Click="buttonLoadProtocol_Click" />
        <Button Grid.Column="0" Content="start" Height="23" HorizontalAlignment="Left" Margin="10,39,0,0" Name="buttonStart" VerticalAlignment="Top" Width="86" Click="buttonStart_Click" />
        <Button Content="next" Height="23" HorizontalAlignment="Left" Margin="10,98,0,0" Name="buttonNext" VerticalAlignment="Top" Width="86" Click="buttonNext_Click" />
        <Grid Grid.Column="1" HorizontalAlignment="Stretch" Name="grid1" VerticalAlignment="Stretch">
            <Grid.RowDefinitions>
                <RowDefinition Height="47*" />
                <RowDefinition Height="306*" />
            </Grid.RowDefinitions>
            <RichTextBox HorizontalAlignment="Stretch" Margin="5" Name="richTextBox1" VerticalAlignment="Stretch" Grid.Row="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                <RichTextBox.Resources>
                    <Style TargetType="{x:Type Paragraph}">
                        <Setter Property="Margin" Value="0"/>
                    </Style>
                </RichTextBox.Resources>
            </RichTextBox>
            <TextBlock  Grid.Row="0" HorizontalAlignment="Stretch" Margin="5" Name="textBlock_filename" Text="TextBlock" VerticalAlignment="Stretch" TextWrapping="Wrap" />
        </Grid>
        <Grid Grid.Column="2"  HorizontalAlignment="Stretch" Margin="5" Name="grid2" VerticalAlignment="Stretch" >
            <Grid.RowDefinitions>
                <RowDefinition Height="315*" />
                <RowDefinition Height="38*" />
            </Grid.RowDefinitions>
            <RichTextBox Grid.Row="0" HorizontalAlignment="Stretch" Margin="5" Name="richTextBox2" VerticalAlignment="Stretch" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" />
            <Label Content="Instructions: 0/0" HorizontalAlignment="Stretch" Name="labelProgress" VerticalAlignment="Top" Grid.Row="1" Margin="0,0,160,0" />
            <Label Content="Remaining Time: 0 min" HorizontalAlignment="Stretch" Margin="165,0,5,0" Name="estimated_time" VerticalAlignment="Top" Grid.Row="1" />
        </Grid>
        <Button Content="reload file" Height="23" HorizontalAlignment="Left" Margin="10,127,0,0" Name="button_reload" VerticalAlignment="Top" Width="86" Click="button_reload_Click" />
        <Button Content="save to file" Height="23" HorizontalAlignment="Left" Margin="10,156,0,0" Name="button_savetofile" VerticalAlignment="Top" Width="86" Click="button_savetofile_Click" />
        <Button Content="stop" Height="23" HorizontalAlignment="Left" Margin="10,68,0,0" Name="button_Stop" VerticalAlignment="Top" Width="86" Click="button_Stop_Click" />
    </Grid>
</UserControl>
